package third;

public class Main {
    public static void main(String[] args) {
        DogMaster dogMaster = new DogMaster();
        DogEnemy dogEnemy = new DogEnemy();
        DogFriend dogFriend = new DogFriend();
        DogCompanion dogCompanion = new DogCompanion();

        Dog dog = new Dog(dogMaster);
        dog.show();

        dog = new Dog(dogEnemy);
        dog.show();

        dog = new Dog(dogFriend);
        dog.show();

        dog = new Dog(dogCompanion);
        dog.show();
    }
}
